# Maintainer: Oliver Smith <ollieparaoid@postmarketos.org>
pkgname=mobile-config-firefox
pkgver=2.0.0
pkgrel=0
pkgdesc="Firefox tweaks for mobile and privacy"
url="https://gitlab.com/postmarketOS/mobile-config-firefox"
source="
	https://gitlab.com/postmarketOS/mobile-config-firefox/-/archive/$pkgver/mobile-config-firefox-$pkgver.tar.bz2
	distro_links.html
"
arch="noarch"
license="GPL-3.0-or-later"
options="!check" # No tests
replaces="postmarketos-config-firefox"
provides="postmarketos-config-firefox=$pkgver"

prepare() {
	default_prepare
	cp "$srcdir/distro_links.html" "$builddir/src/homepage"
}

build() {
	make DISTRO=postmarketOS
}

package() {
	make DESTDIR="$pkgdir" install
}
sha512sums="bf61f1a163bfd7603cb3f1e73f23bed7dfbd1f2c6d994be085ba8bc2e49ab592f35d451b6f9521c9638d690d98aaa3f538504ff3c9fd07729234c14ec93cf758  mobile-config-firefox-2.0.0.tar.bz2
b99713e30add88f532870430a3c9122faf7e932356cdbe1faa571b661088ce00665a5e499f1873688e58c014b741235571b67efa3df2228b5f3e39972d6f35e3  distro_links.html"
